<template>
  <div class="singer page">
    <div class="top">
      <span>本页显示：10个</span>
      <i class="iconfont icon-refresh"></i>
    </div>
    <div class="list">
      <div class="item" v-for="(itemInfo, index) in list" :key="index">
        <div
          class="top"
          :style="{ backgroundImage: 'url(' + itemInfo.bg + ')' }"
        >
          <div class="cardtop_content">
            <p class="user_name">{{ itemInfo.publisher }}</p>
          </div>
        </div>
        <div class="cont">
          <div>
            <b>地区：</b>
            <span>China 中国大陆</span>
          </div>
          <div>
            <b>生日：</b>
            <span>1997-11-21</span>
          </div>
          <div>
            <b>简介：</b>
            <span>擅长摇滚类型音乐</span>
          </div>
          <div>
            <b>代表作品：</b>
            <span>《一剑霜寒》、《一剑霜寒》</span>
          </div>
        </div>
        <div class="bot">
          <span>已投稿书：8</span>
          <div class="btn">找TA约稿</div>
        </div>
      </div>
    </div>
    <div style="text-align: center">
      <el-pagination
        background
        v-model:currentPage="currentPage1"
        :page-sizes="[100, 200, 300, 400]"
        :page-size="100"
        layout="prev, pager, next"
        :total="400"
        @size-change="handleSizeChange"
        @current-change="handleCurrentChange"
      >
      </el-pagination>
    </div>
  </div>
</template>
<script>
import {GetAuthorList} from "@/api/UserInfo"
export default {
  data() {
    return {
      list: [
        {
          bg: require("@/assets/img/profile_1.png"),
          id: 1,
          isActivated: true,
          title: "123456",
          description: "作评描述",
          publisherId: 1,
          publisher: "test",
          createTime: "2021-11-02 17:32:26",
          hashCode: null,
          creationTypeId: 1,
          creationTypeName: "短视频",
          scanType: 1,
          workState: 0,
          price: 125.25,
          isCollection: 1,
          collectionNum: 1,
          isSupported: 0,
          supportNum: 0,
        },
        {
          bg: require("@/assets/img/profile_1.png"),
          id: 1,
          isActivated: true,
          title: "123456",
          description: "作评描述",
          publisherId: 1,
          publisher: "test",
          createTime: "2021-11-02 17:32:26",
          hashCode: null,
          creationTypeId: 1,
          creationTypeName: "短视频",
          scanType: 1,
          workState: 0,
          price: 125.25,
          isCollection: 1,
          collectionNum: 1,
          isSupported: 0,
          supportNum: 0,
        },
      ],
    };
  },
  created(){
      this.getList()
  },
  methods:{
      getList(){
          GetAuthorList({creationTypeId:3}).then((res)=>{})
      }
  }
};
</script>
<style lang="scss" scoped>
.singer {
    margin-bottom: 20px;
  .top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #333333;
  }
  .list {
    display: flex;
    margin: 20px 0;
    .item {
      width: 320px;
      background: #ffffff;
      box-shadow: 0px 0px 21px 0px rgba(17, 16, 16, 0.07);
      border-radius: 4px;
      margin-right: 18px;
      margin-bottom: 18px;
      .top {
        position: relative;
        height: 170px;
        background-size: cover;
        color: #fff;
        &::before {
          position: absolute;
          content: "";
          width: 100%;
          height: 100%;
          background: rgba(0, 0, 0, 0.3);
          z-index: 1;
        }
        .cardtop_content {
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          box-sizing: border-box;
          position: relative;
          width: 100%;
          height: 100%;
          padding: 0 20px;
          z-index: 2;
          .user_name {
            font-size: 18px;
            margin-bottom: 10px;
          }
        }
      }
      .cont {
        font-size: 12px;
        margin: 0px 16px;
        & > div {
          margin-top: 12px;
        }
      }
      .bot {
        display: flex;
        border-top: 1px solid #e9e9e9;
        align-items: center;
        justify-content: space-between;
        font-size: 12px;
        margin-top: 15px;
        padding: 10px;
        span {
          font-weight: bold;
          color: #666666;
        }
        .btn {
          width: 80px;
          height: 31px;
          text-align: center;
          line-height: 31px;
          background: rgba(46, 176, 198, 0.15);
          border: 1px solid #2eb0c6;
          border-radius: 4px;
          font-weight: bold;
          color: #2eb0c6;
          cursor: pointer;
        }
      }
    }
  }
}
</style>